@import '../../../style/default';

.ad-rt {
  display: block;
  background-color: #e8e8e8;
  padding: $reuse-tab-padding;
  margin: 0px;
  border-bottom: 1px solid $reuse-tab-border-color;
  outline: none;
  user-select: none;
  .#{$style-prefix}-tabs-bar {
    margin-bottom: 0;
    border-bottom: none;
  }
  .#{$style-prefix}-tabs-nav {
    .#{$style-prefix}-tabs-tab {
      color: #333;
      padding: 0;
      .name {
        display: inline-block;
        padding: 8px 20px;
      }
      .op {
        display: none;
        position: absolute;
        top: 14px;
        right: 2px;
        margin: 0;
        font-size: 12px;
      }
      &:hover {
        .op {
          display: block;
        }
      }
    }
    .#{$style-prefix}-tabs-tab-active {
      color: #333;
    }
  }

  &.fixed {
    position: fixed;
    top: $header-hg; // 80px
    bottom:$reuse-tab-bottom;
    left: $reuse-tab-left;
    right: $reuse-tab-right;
    margin: 0px;
    z-index: 0;
    border-bottom: 1px solid #ddd;
  }
  .#{$style-prefix}-tabs-ink-bar {
    background: #333;
  }
}

.reuse-tab-cm {
  .#{$style-prefix}-menu {
    border: 1px solid #e9e9e9;
  }
}

.aside-collapsed .ad-rt.fixed {
  left: $aside-collapsed-wd;
}
@media (max-width: $screen-sm-max) {
  .ad-rt.fixed {
    //top: -$reuse-tab-height;
    top: -93px;
    left: 0;
    margin: 0;
    //background: linear-gradient(to right, #3c8dbd, #1f323c);
  }
  .aside-collapsed .ad-rt.fixed {
    left: 0;
    margin: 0;
    //background: linear-gradient(to right, #3c8dbd, #1f323c);
    top: -93px;
  }
}
